import utils from '../utils/utils';
import request from '../utils/request';

// 登录再login.js
//修改密码
export function auditPwd(data) {
    return request({
        url: '/configuration_system/v1_0_0/login/pwdChange',
        method: 'post',
        data
    })
}
// 获取用户菜单
export function getUserMenu(data) {
    return request({
        url: '/configuration_system/v1_0_0/menu/getUserMenu',
        method: 'post',
        data
    })
}
// 获取用户菜单权限-设置权限
export function getAllMenu(data) {
    return request({
        url: '/configuration_system/v1_0_0/menu/getAllMenu',
        method: 'post',
        data
    })
}

// 获取全部菜单
export function getMenu(data) {
    return request({
        url: '/configuration_system/v1_0_0/menu/getMenu',
        method: 'post',
        data
    })
}
// 获取用户部门岗位信息
export function getUserPositionInfo(data) {
    return request({
        url: '/configuration_system/v1_0_0/user/getUserPositionInfo',
        method: 'post',
        data
    })
}
// 新增账号
export function addUserAndAuthority(data) {
    return request({
        url: '/configuration_system/v1_0_0/user/addUserAndAuthority',
        method: 'post',
        data
    })
}
// 修改账号
export function updUserAndAuthority(data) {
    return request({
        url: '/configuration_system/v1_0_0/user/updUserAndAuthority',
        method: 'post',
        data
    })
}
// 获取全部用户
export function getAllAccounnt(data) {
    return request({
        url: '/configuration_system/v1_0_0/user/getAllAccounnt',
        method: 'post',
        data
    })
}
// 获取用户操作日志
export function getOptLog(data) {
    return request({
        url: '/configuration_system/v1_0_0/user/getOptLog',
        method: 'post',
        data
    })
}

// 获取用户绑定项目
export function getProjectInfoByAccountId(data) {
    return request({
        url: '/configuration_system/v1_0_0/user/getProjectInfoByAccountId',
        method: 'post',
        data
    })
}
//检验原手机号
export function checkPhone(data) {
    return request({
        url: '/configuration_system/v1_0_0/user/checkPhone',
        method: 'post',
        data,
    })
}

//检验原密码
export function checkPwd(data) {
    return request({
        url: '/configuration_system/v1_0_0/login/checkPwd',
        method: 'post',
        data,
    })
}

// 提交修改电话
export function auditPhone(data) {
    return request({
        url: '/configuration_system/v1_0_0/user/updAccount',
        method: 'post',
        data,
    })
}


// 根据权限获取用户列表（复核人员列表）

export function getUserListByMenu(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/getUserListByMenu',
        method: 'post',
        data
    })
}









